# README 

for "Replication Data for: The Pandemic Journaling Project: A new dataset of first-person accounts of the COVID-19 pandemic"

Sarah S. Willen, Katherine A. Mason, Heather M. Wurtz, Sebastian Karcher

These are summary data to describe the PJP-1 dataset as used in the paper "The Pandemic Journaling Project: 
A new dataset of first-person accounts of the COVID-19 pandemic," as well as code to generate some of the figures in the paper. For the full PJP-1 data, please consult:

 Willen, S. S., & Mason, K. A. (2024). Data for: The Pandemic Journaling Project, Phase One (PJP-1) (Version V1) [dataset]. QDR Main Collection. https://doi.org/10.5064/F6PXS9ZK


## Files included

This deposit includes the following files:

1. PJP_summaryData.xlsx - Excel file that includes all summary data in mutiple tabs and generates figures 2, 3, and 4
2. pjp-number-participants.csv - participants data used for figure 7
3. pjp-world-map.csv - geographic data used for figure 5
4. pjp-us-map.csv - geographic data used for figure 5
5. pjp-data.Rproj - R project file 
6. panel-attrition.R - R script to generate figure 7 as panel_participation_bar.png. The script also includes code to generate a line graph version.
7. pjp-maps.R - R script to generate figures 5 and 6 as world_greyscale_map.png and us_greyscale_map.png respectively. The script also includes code to generate color versions of the maps

## Running the code
Download all files into the same directory, then open pjp-data.Rpoj in RStudio. You can run the two R scripts in any order. They save the figures in the same folder.